﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="read.aspx.cs" Inherits="Add" ValidateRequest="false" %>

<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">
 
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="../../js/jquery.form.js"></script>
    
    <link href="../50/imgup.css" rel="stylesheet" />
    <link href="../50/style.css" rel="stylesheet" />
    <script src="../50/function.js"></script>


  

</head>
<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal">
  <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">

<div class="tabs-container" style="margin-top: 1em;">
              
     <div class="panel-body">


                            <div class="form-group">
                                <label class="col-sm-1 control-label">内容标题：</label>
                                <div class="col-sm-5">
                                    <asp:TextBox ID="txtTitle" runat="server" CssClass="form-control" required="true"
            maxlength="250" minlength="1" HintTitle="发布的文章标题" HintInfo="控制在100个字数内，标题文本尽量不要太长。"></asp:TextBox>
                                 </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">所属栏目：</label>
                                <div class="col-sm-5">
              <asp:DropDownList id="ddlClassId" CssClass="form-control" required="true" runat="server" HintTitle="类型" HintInfo="类型为单页或者跳转的默认只取该分类下最新一篇文章"></asp:DropDownList></td>
        
                             </div>
                            </div>
                           <div class="form-group">
                                <label class="col-sm-1 control-label">跳转地址：</label>
                                <div class="col-sm-5">
<asp:TextBox ID="txtUrl" runat="server" CssClass="form-control" 
            maxlength="100" HintTitle="跳转地址" HintInfo="外网地址请写完整URL如：http://www.lnkj.cc 本站地址可以用相对地址如：list12.aspx"></asp:TextBox>
                            </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">文章属性：</label>
                                <div class="col-sm-5">

                                    <asp:Literal ID="txtClick" runat="server"></asp:Literal>
                

                                </div>

                         <div class="col-sm-5">
                          <span id="upordown" class="up-02">显示高级选项</span>
                                   </div>
                            </div>


                           <div class="form-group upordown" style="display: none;">
                                <label class="col-sm-1 control-label">文章作者：</label>
                                <div class="col-sm-3">
 <asp:TextBox ID="txtAuthor" runat="server" CssClass="form-control" 
            maxlength="50" HintTitle="文章作者" HintInfo="控制在50个字数内，如“管理员”。">管理员</asp:TextBox> 

                                </div>
                            </div>

                           <div class="form-group upordown " style="display: none;">
                                <label class="col-sm-1 control-label">文章来源：</label>
                                <div class="col-sm-3">
    <asp:TextBox ID="txtForm" runat="server" CssClass="form-control" 
            maxlength="100" HintTitle="信息来源" HintInfo="控制在50个字数内，如“本站”。">本站</asp:TextBox>
                                 </div>
                            </div>

                           <div class="form-group upordown " style="display: none;">
                                <label class="col-sm-1 control-label">Word上传：</label>
                                <div class="col-sm-3">
  <input id="Fileword" type="file" runat="server"  class="fileword form-control btn btn-primary"   />
 
   一键上传word文档，并自动上传WORD中的图片文件
   <!--a href="javascript:void(0);" class="fileword"><input type="file" id="Fileip" name="Fileip" onchange="WordUpload('txtContent','Fileip')" /></a>
   <span class="uploadingw">正在上传，请稍候...</span-->

                                 </div>
                                  <div class="col-sm-3">
                           
                                      注意word文件大小不要超过2m
                                 </div>
                            </div>

                            <div class="form-group">
                                
          
                                    <asp:Literal ID="txtContent" runat="server"></asp:Literal>    
                                 
                             
                            </div>



                            
                            
                    
                        </div>
                   


</div>
</div>
</div>
</div>
    
    </form>


       
      <!-- 全局js -->

    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->
    <script src="../js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>

            <script type="text/javascript">
                laydate.skin('yalan')
     var start = {
         elem: "#txtRQ",
            format: "YYYY/MM/DD hh:mm:ss",
            max: "2099-06-16 23:59:59",
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas;
                end.start = datas
            }
     };
    
        laydate(start);

    </script>

            <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green'

            });
        });
    </script>

    <script type="text/javascript" src="../js/layer/layer.js"></script>



    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>

    <script type="text/javascript">
      


                if (typeof (success) != "undefined") {

                    swal({ title: msg, type: "success", html: true, confirmButtonText: "再发一篇", showConfirmButton: true, timer: 1000 }
                        , function (isConfirm) {

                            if (isConfirm) {
                                swal("Deleted!", "Your imaginary file has been deleted.", "success");
          
                            }
                            else
                            {
                                var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引

                                if (typeof (index) != "undefined") {
                                    parent.layer.close(index); //执行关闭

                                }
                                else {
                                    parent.openItem(successurl, 1, '资讯管理');

                                }

                            }

                        
                        }

     
                       );
                }
                function myclose() {
                    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                    parent.layer.close(index); //执行关闭
                }

    
    
    </script>
</body>
</html>
